package com.newtouch.xcd.cms.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.newtouch.xcd.cms.entity.Monitor;
import com.newtouch.xcd.cms.mapper.MonitorMapper;
import com.newtouch.xcd.cms.service.MonitorService;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 监察人信息 服务实现类
 * </p>
 *
 * @author dongyuefeng
 * @since 2020-05-21
 */
@Component
@Service
public class MonitorServiceImpl extends ServiceImpl<MonitorMapper, Monitor> implements MonitorService {

    /**
     * 通过合同号查找数据
     * @param contractId
     * @return
     */
    @Override
    public List<Monitor> queryByContractId(String contractId){

        QueryWrapper queryWrapper = new QueryWrapper();
        queryWrapper.eq("contract_id",contractId);

        return this.list(queryWrapper);
    }

}
